package com.itheima.common;

import com.itheima.pojo.User;

public class ThreadLocalIUtil {
    private static ThreadLocal<String> threadLocal=new ThreadLocal<>();

    public static void setId(String id){
        threadLocal.set(id);
    }
    public static String getId(){
       return threadLocal.get();


    }


    private static ThreadLocal<User> userThreadLocal=new ThreadLocal<>();

}
